﻿using System;
using System.Linq;
using System.Numerics;


class CalculateSumOfNumbers
{
    static void Main(string[] args)
    {
        // Read n
        string input = Console.ReadLine();
        int n = int.Parse(input);
        
        // Read and sum n numbers
        BigInteger sum = 0;
        for (int i = 0; i < n; i++)
        {
            input = Console.ReadLine();
            int number = int.Parse(input);
            sum += number;
        }

        // Print result
        Console.WriteLine(sum);
    }
}
